layout.tsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import HeaderBack from "@/components/HeaderBack";
  2. import { useTranslations } from "next-intl";
  3. import { ReactNode } from "react";
  4. export default function Layout({
  5. children,
  6. params: { locale },
  7. }: {
  8. children: ReactNode;
  9. params: { locale: string };
  10. }) {
  11. const t = useTranslations("Sidebar");
  12. // const router = useRouter();
  13. // const goRecord = () => {
  14. // router.push({
  15. // pathname: "/promo/record",
  16. // });
  17. // };
  18. return (
  19. <div className="h-[100%] overflow-auto bg-[url('/home/bg.jpg')]">
  20. <HeaderBack
  21. useBg={true}
  22. showBack={true}
  23. title={t("promocoes")}
  24. // Right={() => (
  25. // <div
  26. // onClick={goRecord}
  27. // className="whitespace-nowrap text-[.12rem] text-[#00eaff]"
  28. // >
  29. // Recorde de prêmios
  30. // </div>
  31. // )}
  32. />
  33. <main className={"main-header"}>{children}</main>
  34. </div>
  35. );
  36. }